<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // NCE
      const Person = class Humen {
        constructor(name, age) {
          // console.log(Humen);
          this.name = name;
          this.age = age;
        }
        say() {
          console.log(Humen);
        }
      };
      // NFE
      /* const Person = function Humen(name, age) {
        console.log(Humen);
        this.name = name;
        this.age = age;
      }; */
      const p1 = new Person("lili", 20);
      const p2 = new Person("jack", 21);
      p1.say();
      // console.log(p1, p2);
    </script>
  </body>
</html>
